﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TopSite.Master" AutoEventWireup="true"
    CodeFile="CreateUser.aspx.cs" Inherits="CreateUser" %>

<%@ Register Assembly="CaptchaUltimateCustomControl" Namespace="PeterKellner.Utils"
    TagPrefix="CAPTCHA" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="Stylesheet" type="text/css" href="../Css/Security.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="loginStatus" runat="server">
    &nbps;
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="divContent" style="clear: both;">
        <table style="margin: 0px auto; padding-top: 20px; width: 1020px;" cellpadding="3px">
            <tr>
                <td style="width: auto" valign="top">
                    <h1>
                        Muaban365</h1>
                    Chúc mừng bạn tham gia và hệ thống cửa hàng muaban365.vn
                </td>
                <td valign="top" style="width: 380px;">
                    <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" DisableCreatedUser="true"
                        LoginCreatedUser="false" CreateUserButtonText="Đăng ký" CreateUserButtonStyle-CssClass="securityButton"
                        OnSendingMail="CreateUserWizard1_SendingMail" Width="378px" BorderStyle="Solid"
                        BorderWidth="1px" BackColor="#EFEFEF">
                        <MailDefinition BodyFileName="~/Security/EmailTemplates/CreateUserWizard.txt" Subject="Welcome to muaban365! Please activate your account.">
                        </MailDefinition>
                        <WizardSteps>
                            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                                <ContentTemplate>
                                    <table border="0" style="margin: 10px;">
                                        <tr>
                                            <td align="center" colspan="2" class="securityTitle">
                                                Đăng ký tài khoản muaban365.vn
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 90px;">
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" class="securityLabel">
                        Tài khoản:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="UserName" runat="server" class="securityTextBox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                    ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" class="securityLabel">
                        Mật khẩu:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" TextMode="Password" class="securityTextBox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword"
                                                    class="securityLabel">
                        Xác nhận mật khẩu:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" class="securityTextBox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                                    ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."
                                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" class="securityLabel">
                        E-mail:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Email" runat="server" class="securityTextBox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                                    ErrorMessage="E-mail is required." ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" class="securityLabel">
                        Câu hỏi bảo mật:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Question" runat="server" class="securityTextBox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                                                    ErrorMessage="Security question is required." ToolTip="Security question is required."
                                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" class="securityLabel">
                        Câu trả lời bảo mật:</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Answer" runat="server" class="securityTextBox"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                                                    ErrorMessage="Security answer is required." ToolTip="Security answer is required."
                                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="CaptchaLabel" runat="server" AssociatedControlID="Captcha" class="securityLabel">
                        Mã xác nhận:</asp:Label>
                                            </td>
                                            <td>
                                                <CAPTCHA:CaptchaUltimateControl ID="Captcha" runat="server" CaptchaBackgroundColor="White"
                                                    CaptchaLength="4" CaptchaType="2" CommandArg1="" CommandArg2="" CommandArg3=""
                                                    CommandArg4="" CommandArg5="" EncryptedValue="" FontFamilyString="Courrier New"
                                                    HeightCaptchaPixels="30" InvalidCaptchaMessage="*" ShowPromo="false" ShowRecalculateCaptchaButton="false"
                                                    PlainValue="" ShowTitle="True" WidthCaptchaPixels="80">
                                                    <ItemTemplate>
                                                        <asp:TextBox ID="VerificationID" runat="server" Width="80px" class="securityTextBox"></asp:TextBox>
                                                        <asp:CustomValidator ID="CustomValidatorID" ControlToValidate="VerificationID" runat="server">***</asp:CustomValidator>
                                                        <asp:Image ID="CaptchaImageID" runat="server" ImageUrl="~/CaptchaType.ashx" />
                                                    </ItemTemplate>
                                                </CAPTCHA:CaptchaUltimateControl>
                                                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Captcha"
                                                        ErrorMessage="Security answer is required." ToolTip="Captcha is required." ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>--%>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2">
                                                <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                                    ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                                                    ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color: red">
                                                <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <asp:CheckBox ID="SubscribeCheckBox" runat="server" Checked="True" Text="Gửi cho tôi 1 tin tức hằng tháng." />
                                                <br />
                                                <asp:CheckBox ID="ShareInfoCheckBox" runat="server" Checked="True" Text="Cho phép dùng thông tin của tôi ở những trang web đối tác mua bán." />
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:CreateUserWizardStep>
                            <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                                <ContentTemplate>
                                    <table border="0" style="font-size: 100%; font-family: Verdana" id="TABLE1">
                                        <tr>
                                            <td align="center" colspan="2" style="font-weight: bold; color: white; background-color: #5d7b9d;
                                                height: 18px;">
                                                Hoàn tất
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Tài khoản của bạn đã được tại thành công.<br />
                                                <br />
                                                <asp:Label ID="SubscribeLabel" runat="server" Text="You have elected to receive our monthly newsletter."></asp:Label><br />
                                                <br />
                                                <asp:Label ID="ShareInfoLabel" runat="server" Text="You have elected to share your information with partner sites."></asp:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                &nbsp;<asp:Button ID="ContinueButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"
                                                    BorderStyle="Solid" BorderWidth="1px" CausesValidation="False" CommandName="Continue"
                                                    Font-Names="Verdana" ForeColor="#284775" Text="Continue" ValidationGroup="CreateUserWizard1" />
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </asp:CompleteWizardStep>
                        </WizardSteps>
                    </asp:CreateUserWizard>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
